package com.lsc.www.day04;
//导包
import com.lsc.www.test.Test01;

public class Method05 {
    public static void main(String[] args) {
        m(10,20,30,40,50);
        //同包
        MethodTest.method1();
        //不同包,需要先导包
        Test01.t1();
    }

    //                           int类型的可变长参数
    public static void m(int a , int ... b){
        System.out.println(a);
        for (int i = 0 ; i < b.length ; i++){
            System.out.println(b[i]);
        }
    }
}
